package tech.yangzhijie.basic.java04;

public class Java04 {

    public static void main(String[] args) {
        /*String str = new String("hello");
        int val = 11;
        PassValueTest pt = new PassValueTest();

        pt.changeInt(val);
        System.out.println(val);
        pt.changeStr(str);
        System.out.println(str);
        pt.changeObjValue(pt);
        System.out.println(pt.getPtValue());
        */
        /*System.out.println(Integer.toBinaryString(2));
        System.out.println(Integer.toHexString(16));
        System.out.println(Integer.toOctalString(8));*/

        System.out.println(Math.sqrt(2)+Math.sqrt(8));
        System.out.println(Math.sqrt(2));
    }

}

class PassValueTest{
    private float ptValue;
    public void changeInt(int value){
        value = 55;
    }
    public void changeStr(String str){
        str = new String("different");
    }
    public void changeObjValue(PassValueTest test){
        test.ptValue = 99f;
    }

    public float getPtValue() {
        return ptValue;
    }

    public void setPtValue(float ptValue) {
        this.ptValue = ptValue;
    }
}
